package com.pick.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户注册响应DTO
 */
@Data
@Schema(description = "用户注册响应")
public class RegisterResponse {

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "真实姓名")
    private String realName;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "用户状态")
    private Integer status;

    @Schema(description = "注册时间")
    private LocalDateTime createTime;

    @Schema(description = "注册成功消息")
    private String message;

    public RegisterResponse() {
        this.message = "注册成功";
    }

    public RegisterResponse(Long id, String username, String realName, String email, String mobile, Integer status, LocalDateTime createTime) {
        this.id = id;
        this.username = username;
        this.realName = realName;
        this.email = email;
        this.mobile = mobile;
        this.status = status;
        this.createTime = createTime;
        this.message = "注册成功";
    }
}